import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true,
    keepAlive: true,
};

const pre = '/setting/clique/';

export default {
    path: '/setting/clique',
    name: 'clique',
    redirect: {
        name: `${pre}common`,
    },
    meta,
    component: BasicLayout,
    children: [{
                    path: 'authorization',
                    name: `${pre}authorization`,
                    meta: {
                        ...meta,
                        title: '授权码管理',
                    },
                    component: () => {
                        return import ('@/pages/clique/authorization'); 
                    },
                },{
                    path: 'managedept',
                    name: `${pre}managedept`,
                    meta: {
                        ...meta,
                        title: '部门管理',
                    },
                    component: () => {
                        return import ('@/pages/clique/managedept'); 
                    },
                },{
                   path: 'common',
                   name: `${pre}common`,
                   meta: {
                       ...meta,
                       title: '通用选项',
                   },
                   component: () => {
                       return import ('@/pages/clique/common'); 
                   },
               },
               {
                   path: 'project',
                   name: `${pre}project`,
                   meta: {
                       ...meta,
                       title: '项目列表',
                   },
                   component: () => {
                       return import ('@/pages/clique/project'); 
                   },
               },
               {
                    path: 'datashare',
                    name: `${pre}datashare`,
                    meta: {
                        ...meta,
                        title: '数据共享',
                    },
                    component: () => {
                        return import ('@/pages/clique/datashare'); 
                    },
                },
                {
                    path: 'clueset',
                    name: `${pre}clueset`,
                    meta: {
                        ...meta,
                        title: '线索配置',
                    },
                    component: () => {
                        return import ('@/pages/clique/clueset'); 
                    },
                },
               {
                   path: 'setWorkBench',
                   name: `${pre}setWorkBench`,
                   meta: {
                       ...meta,
                       title: '工作台配置',
                   },
                   component: () => {
                       return import ('@/pages/setting/setWorkBench'); 
                   },
               },
               {
                   path: 'position',
                   name: `${pre}position`,
                   meta: {
                       ...meta,
                       title: '部位',
                   },
                   component: () => {
                       return import ('@/pages/clique/position'); 
                   },
               },
               {
                   path: 'channel',
                   name: `${pre}channel`,
                   meta: {
                       ...meta,
                       title: '来源渠道',
                   },
                   component: () => {
                       return import ('@/pages/clique/channel'); 
                   },
               },
               {
                   path: 'label',
                   name: `${pre}label`,
                   meta: {
                       ...meta,
                       title: '标签列表',
                   },
                   component: () => {
                       return import ('@/pages/clique/label'); 
                   },
               },
               {
                   path: 'desease',
                   name: `${pre}desease`,
                   meta: {
                       ...meta,
                       title: '病种',
                   },
                   component: () => {
                       return import ('@/pages/clique/desease'); 
                   },
               },
               {
                   path: 'toConfigure',
                   name: `${pre}toConfigure`,
                   meta: {
                       ...meta,
                       title: '营销表配置',
                   },
                   component: () => {
                       return import ('@/pages/clique/toConfigure'); 
                   },
               },
               {
                   path: 'development/menu',
                   name: `${pre}development/menu`,
                   meta: {
                       ...meta,
                       title: '菜单',
                   },
                   component: () => {
                       return import ('@/pages/clique/development/menu'); 
                   },
               },
               {
                   path: 'development/module',
                   name: `${pre}development/module`,
                   meta: {
                       ...meta,
                       title: '模块',
                   },
                   component: () => {
                       return import ('@/pages/clique/development/module'); 
                   },
               },
               {
                   path: 'development/action',
                   name: `${pre}development/action`,
                   meta: {
                       ...meta,
                       title: '动作',
                   },
                   component: () => {
                       return import ('@/pages/clique/development/action'); 
                   },
               },
               {
                   path: 'logs/login',
                   name: `${pre}logs/login`,
                   meta: {
                       ...meta,
                       title: '登录日志',
                   },
                   component: () => {
                       return import ('@/pages/clique/logs/login'); 
                   },
               },
               {
                   path: 'logs/operation',
                   name: `${pre}logs/operation`,
                   meta: {
                       ...meta,
                       title: '操作日志',
                   },
                   component: () => {
                       return import ('@/pages/clique/logs/operation'); 
                   },
               },
               {
                   path: 'logs/power',
                   name: `${pre}logs/power`,
                   meta: {
                       ...meta,
                       title: '权限管理日志',
                   },
                   component: () => {
                       return import ('@/pages/clique/logs/power'); 
                   },
               },
               {
                   path: 'power/person',
                   name: `${pre}power/person`,
                   meta: {
                       ...meta,
                       title: '员工',
                   },
                   component: () => {
                       return import ('@/pages/clique/power/person'); 
                   },
               },
               {
                   path: 'power/role',
                   name: `${pre}power/role`,
                   meta: {
                       ...meta,
                       title: '角色',
                   },
                   component: () => {
                       return import ('@/pages/clique/power/role'); 
                   },
               },
               {
                   path: 'power/duty',
                   name: `${pre}power/duty`,
                   meta: {
                       ...meta,
                       title: '职能',
                   },
                   component: () => {
                       return import ('@/pages/clique/power/duty'); 
                   },
               },
               {
                path: 'power/managegroups',
                name: `${pre}power/managegroups`,
                meta: {
                    ...meta,
                    title: '管理组',
                },
                component: () => {
                    return import ('@/pages/clique/power/managegroups'); 
                },
            },
    ],
};